<{include file=$module.'/header.php'}>

<div class="page goods-add" id="page-goods-post">
	<header class="bar bar-nav common-bar-nav ">
		<a class="pull-left back"><i class="fa fa-arrow-left"></i></a>
		<h1 class="title"><{$tit}>详情</h1>
		<a href="javascript:;" onclick="location.reload();" class="pull-right">刷新</a>
	</header>
	<{include file=$module.'/nav.php'}>
	<div class="content">
		<div class="tabs">
			<div id="order-detail" class="tab active">

				<div class="list-block">
					<ul>
						<li class="item-content">
							<div class="item-inner">
								<div class="item-title">编号</div>
								<div class="item-after"><{$info.id}></div>
							</div>
						</li>
						<li class="item-content">
							<div class="item-inner">
								<div class="item-title">科室</div>
								<div class="item-after"><{$zone.name}></div>
							</div>
						</li>
						<li class="item-content">
							<div class="item-inner">
								<div class="item-title">病床</div>
								<div class="item-after"><{$bingchuang.name}></div>
							</div>
						</li>
					</ul>
				</div>
				<{foreach $list as $val}>
				<div class="list-block m-b-0  other-info">
					<ul>
						<li class="item-content">
							<div class="item-inner">
								<{$val.i}>、<{$diaochas[$val.diaocha_id]['title']}>[#<{$val.diaocha_id}>]
							</div>
						</li>
						<{if $val.fk_info}>
						<li class="item-content">
							<a href="/index_admin/fankui/detail?id=<{$val.fk_info.id}>" class="external">
							<div class="item-inner">
								<span class="color-danger"><{$val.diaocha_text}></span> 【<{$orderStatus[$val.fk_info.order_status]}>】
							</div>
							</a>
						</li>
						<li class="item-content">
							<div class="item-inner">
								<{$val.fk_info.intro}>
							</div>
						</li>
						<{else}>

						<li class="item-content">
							<div class="item-inner">
								<{if $val.diaocha_text=='非常满意'}><span class="color-success"><{$val.diaocha_text}></span><{/if}>
								<{if $val.diaocha_text=='较满意'}><span class="color-primary"><{$val.diaocha_text}></span><{/if}>
								<{if $val.diaocha_text=='一般满意'}><span class="color-primary"><{$val.diaocha_text}></span><{/if}>
								<{if $val.diaocha_text=='不满意'}><span class="color-danger"><{$val.diaocha_text}></span><{/if}>

								<{if $val.diaocha_text=='是'}><span class="color-danger"><{$val.diaocha_text}></span><{/if}>
								<{if $val.diaocha_text=='否'}><span class="color-success"><{$val.diaocha_text}></span><{/if}>
							</div>
						</li>
						<{/if}>
					</ul>
				</div>
				<{/foreach}>

				<div class="content-block-title">意见建议</div>
				<div class="list-block m-b-0 other-info">
					<ul>
						<li class="align-top">
							<div class="item-content">
								<div class="item-inner">
									<div class="item-input">
										<textarea name="intro" readonly><{$info.intro}></textarea>
									</div>
								</div>
							</div>
						</li>
					</ul>
				</div>


			</div>
			<div id="order-status" class="tab">
				<{foreach $info.logs as $key => $val}>
				<div class="order-status-item">
					<div class="guide">
						<{if $info.logs_maxid != $key}>
							<img src="/static/app/img/order_status_service_grey.png" alt="" />
						<{else}>
							<img src="/static/app/img/order_status_service.png" alt="" />
						<{/if}>
					</div>
					<div class="order-status-info">
						<div class="arrow-left"></div>
						<div class="clearfix"><{$val.intro.msg}> <span class="time pull-right"><{$val.add_time}></span></div>
						<div class="tips"><{$val.intro.intro}></div>
						<{if $val.order_status==5}>
							<{if $info.cl_info}><div class="tips">材料明细：<{$info.cl_info}></div><{/if}>
							<{if $info.cl_money1}><div class="tips">材料费用：<{$info.cl_money1}></div><{/if}>
							<{if $info.cl_money2}><div class="tips">人工费用：<{$info.cl_money2}></div><{/if}>
						<{/if}>
						<{if $val.order_status==6}>
							<{if $info.pj_info}><div class="tips">评价内容：<{$info.pj_info}></div><{/if}>
							<{if $info.pj_star1}>
								<div class="tips">
									维修质量
									<div class="star-comment">
										<div class="star-outline" data-name="pj_star1">
											<label>
												<input type="radio" class="radio" value="1" <{$pj_star1[1]}>>
												<span></span>
											</label>
											<label>
												<input type="radio" class="radio" value="2" <{$pj_star1[2]}>>
												<span></span>
											</label>
											<label>
												<input type="radio" class="radio" value="3" <{$pj_star1[3]}>>
												<span></span>
											</label>
											<label>
												<input type="radio" class="radio" value="4" <{$pj_star1[4]}>>
												<span></span>
											</label>
											<label>
												<input type="radio" class="radio" value="5" <{$pj_star1[5]}>>
												<span></span>
											</label>
										</div>
									</div>
								</div>
							<{/if}>
							<{if $info.pj_star2}>
								<div class="tips">
									服务态度
									<div class="star-comment">
										<div class="star-outline" data-name="pj_star2">
											<label>
												<input type="radio" class="radio" value="1" <{$pj_star2[1]}>>
												<span></span>
											</label>
											<label>
												<input type="radio" class="radio" value="2" <{$pj_star2[2]}>>
												<span></span>
											</label>
											<label>
												<input type="radio" class="radio" value="3" <{$pj_star2[3]}>>
												<span></span>
											</label>
											<label>
												<input type="radio" class="radio" value="4" <{$pj_star2[4]}>>
												<span></span>
											</label>
											<label>
												<input type="radio" class="radio" value="5" <{$pj_star2[5]}>>
												<span></span>
											</label>
										</div>
									</div>
								</div>
							<{/if}>
						<{/if}>
						<{if $val.intro.photos}>
						<div class="image-container muti-upload">
							<ul id="upload-list" class="upload-list p-b-0">
								<{foreach $val.intro.photos as $v}>
								<li><img src="<{$v}>"></li>
								<{/foreach}>
							</ul>
						</div>
						<{/if}>

					</div>
				</div>
				<{/foreach}>
			</div>

		</div>
		<div class="ui-footspace"></div>
	</div>
</div>

<script>
$(function(){
	<{if $info.photos}>
	/*=== 默认为 standalone ===*/
	var myPhotoBrowserStandalone = $.photoBrowser({
	    photos : [
	  		<{foreach $info.photos as $val}>
	  		'<{$val}>',
			<{/foreach}>

			<{if $info.logs}>
	  		<{foreach $info.logs as $key => $val}>
				<{if $val.intro.photos}>
					<{foreach $val.intro.photos as $v}>
					'<{$v}>',
					<{/foreach}>
				<{/if}>
			<{/foreach}>
			<{/if}>
	    ]
	});


	$(document).on('click','.image-container img', function(e){
		myPhotoBrowserStandalone.open();
	});
	<{/if}>


	$.init();


});
</script>
<{include file=$module.'/footer.php'}>